package com.lemon.soft.bookingroom.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lemon.soft.bookingroom.dto.BookingCreateDTO;
import com.lemon.soft.bookingroom.dto.BookingQueryDTO;
import com.lemon.soft.bookingroom.entity.BookingsEntity;
import com.lemon.soft.bookingroom.entity.MeetingRoomsEntity;
import com.lemon.soft.bookingroom.util.PageUtils;
import com.lemon.soft.bookingroom.vo.BookingVo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ${author}
 * @email ${email}
 * @date 2025-05-29 12:38:52
 */
public interface BookingsService extends IService<BookingsEntity> {

    PageUtils queryPage(Map<String, Object> params);
    /**
     * 根据条件查询符合条件的空闲会议室
     */
    List<MeetingRoomsEntity> queryAvailableRooms(BookingQueryDTO queryDTO);

    /**
     * 生成预订订单并锁定会议室
     */

    /**
     * 处理支付
     */
    String processPayment(Integer bookingId);

    /**
     * 检查订单是否超时
     */
    void checkBookingTimeout();

    Object createBooking(BookingCreateDTO createDTO, Integer userId);


    List<BookingVo> selectByUserId(Integer userId);
}

